<template>
<div v-for="item in list" :key="item.id">
    id是:{{ item.id }} -- 元素的内容是：{{ item.msg }}
</div>
</template>

<script setup>
let list = [
    {id:1,msg:"梅"},
    {id:2,msg:"兰"},
    {id:3,msg:"竹"},
    {id:4,msg:"菊"},
];
</script>



<style>
</style>